# pickle（泡菜）：Python 对象序列化的第一人
# pickle 模块解决的是永久存储的问题，运行将对象保存为文件的形式

import pickle

# wb:二进制
with open("./doc/data.pkl", "rb") as f:
    x = pickle.load(f)
    y = pickle.load(f)
    z = pickle.load(f)
    s = pickle.load(f)
    l = pickle.load(f)
    d = pickle.load(f)

print(x, y, z, s, l, d, sep='\n')

print("=" * 100)

# wb:二进制
with open("./doc/data2.pkl", "rb") as f:
    x, y, z, s, l, d = pickle.load(f)

print(x, y, z, s, l, d, sep='\n')
